package cn.zjyj.module.zjyj.controller.admin.tenantunit.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 租户单元新增/修改 Request VO")
@Data
public class TenantUnitSaveReqVO {

    @Schema(description = "单元id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15481")
    private Long id;

    @Schema(description = "单元名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "单元名称不能为空")
    private String name;

    @Schema(description = "父单元id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26403")
    @NotNull(message = "父单元id不能为空")
    private Long parentId;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "负责人", example = "9691")
    private Long leaderUserId;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "单元状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "单元状态（0正常 1停用）不能为空")
    private Integer status;

    @Schema(description = "类型,值取字典表", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "类型,值取字典表不能为空")
    private String type;

    @Schema(description = "是否为危险源", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否为危险源不能为空")
    private Integer isDangerSource;

}